<template>
  <div class="box">
    <el-breadcrumb separator=">">
      <el-breadcrumb-item to="/login" replace>首页</el-breadcrumb-item>
      <el-breadcrumb-item>平台打印</el-breadcrumb-item>
      <el-breadcrumb-item>账户余额打印</el-breadcrumb-item>
      <el-breadcrumb-item>用户银行卡消费打印</el-breadcrumb-item>
    </el-breadcrumb>
    <div class="tableBox">
      <div class="tableTitle">用户银行卡消费打印</div>
      <div class="searchBox">
        <el-form :model="searchObject" size="mini" inline>
          <div class="block">
            <el-form-item label="用户姓名">
              <el-input v-model="searchObject.userName"></el-input>
            </el-form-item>
            <el-form-item label="用户账号">
              <el-input v-model="searchObject.userMobile"></el-input>
            </el-form-item>
            <el-form-item label="开始时间">
              <el-date-picker v-model="searchObject" type="datetime" placeholder="选择日期时间"></el-date-picker>
            </el-form-item>
            <el-form-item label="结束时间">
              <el-date-picker v-model="searchObject" type="datetime" placeholder="选择日期时间"></el-date-picker>
            </el-form-item>
            <el-form-item>
              <el-button type="primary" @click="printDemo">打印</el-button>
            </el-form-item>
            <el-form-item>
              <el-button type="primary" icon="el-icon-search" circle @click="search"></el-button>
            </el-form-item>
          </div>
        </el-form>
      </div>
      <vue-easy-print tableShow ref="easyPrint">
        <el-table :data="tableData" show-summary>
          <el-table-column type="index" label="序号" width="60" align="center"></el-table-column>
          <el-table-column prop="" label="订单编号" align="center"></el-table-column>
          <el-table-column prop="" label="时间" align="center"></el-table-column>
          <el-table-column prop="" label="商户名称" align="center"></el-table-column>
          <el-table-column prop="" label="交易金额" sortable align="center"></el-table-column>
          <el-table-column prop="" label="手机号" align="center"></el-table-column>
          <el-table-column prop="" label="身份证号" align="center"></el-table-column>
          <el-table-column prop="" label="支付渠道" align="center"></el-table-column>
          <el-table-column prop="" label="手续费" sortable align="center"></el-table-column>
          <el-table-column prop="" label="实际到账金额" sortable align="center" width="140px"></el-table-column>
          <el-table-column prop="" label="交易对手" align="center"></el-table-column>
          <el-table-column prop="" label="银行名称" align="center"></el-table-column>
          <el-table-column prop="" label="银行卡号" align="center"></el-table-column>
          <el-table-column prop="" label="开户地" align="center"></el-table-column>
        </el-table>
      </vue-easy-print>
      <pagination :maxTotal="maxTotal" @handleSize="handleSizeChange" @handleCurrent="handleCurrentChange"></pagination>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
  import vueEasyPrint from 'vue-easy-print'

  import pagination from 'components/pagination'

  export default {
    data () {
      return {
        maxTotal: 10,
        searchObject: {},
        tableData: []
      }
    },
    created () {
    },
    methods: {
      search () {
      },
      handleSizeChange (val) {
      },
      handleCurrentChange (val) {
      },
      printDemo () {
        this.$refs.easyPrint.print()
      }
    },
    components: {
      vueEasyPrint,
      pagination
    }
  }
</script>

<style lang="less" ref="stylesheet/less" scoped>

</style>
